﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Entity;
using PaymentBLL;

public partial class pages_account_Info : System.Web.UI.Page
{
    public uspAccountInfoSelectResult Info=new uspAccountInfoSelectResult();
    public string AccountTypeName = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        ((SiteMaster)(this.Master)).LeftMenu = 21;
        if(!Utils.UserUtils.IsLogin)
        {
            Response.Redirect("~/");
        }
        var ctr=new CtrAccount();
        Info = ctr.SelectAccountInfo(Utils.UserUtils.AccountId);
        switch (Utils.UserUtils.TypeAccount)
        {
            case 1:
                AccountTypeName= "Hilo";
                break;
            case 2:
                AccountTypeName= "Facebook";
                break;
            case 3:
                AccountTypeName= "Google";
                break;
            case 4:
                AccountTypeName= "Yahoo";
                break;
            case 5:
                AccountTypeName= "Twitter";
                break;
            case 6:
                AccountTypeName= "Go.vn";
                break;
        }
    }    
}